/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_7;

import character_7.jiekou.Flyer;

/**
 *
 * @author Administrator
 */
public class Character_7 {

    /**
     * @param args the command line arguments
     */
//    public static void main(String[] args) {
//        doSwim(new SwimPlayer("张三"));
//        //Swimmer swimmer1 = new Human("李四");
//        
//        //Human ls = (Human) swimmer1;
//        //ls.getName();
//        //swimmer1.swim();
//        
////        doSwim(new Seaplane("空军零号"));
////        doSwim(new FlyingFish("甚平"));
//        doFly(new Seaplane("空军零号") );
//    }
    
    static void doSwim(SwimPlayer swimmer){
        swimmer.swim();
    }
    
    static void doFly(Flyer flyer){
        flyer.fly();
    }
    
}